Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importlib resources #185

Merged
merged 2 commits into from
Oct 20, 2023
Merged

Importlib resources #185

merged 2 commits into from
Oct 20, 2023

Conversation

ralf-meyer
Copy link
Member

Switch pkg_resources to importlib_resources and the pytest framework to pytest-resource-path

@@ -2268,8 +2256,7 @@
# add to box
for i, t in enumerate(qc):
# File f is never actually used? RM 2022/02/17
f = resource_filename(Requirement.parse( # noqa F841
"molSimplify"), "molSimplify/icons/geoms/" + t + ".png")
f = str(resource_files("molSimplify").joinpath(f"icons/geoms/{t}.png")) # noqa F841

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable f is not used.
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Attention: 54 lines in your changes are missing coverage. Please review.

Comparison is base (2788416) 27.84% compared to head (891afd6) 27.83%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #185      +/-   ##
==========================================
- Coverage   27.84%   27.83%   -0.01%     
==========================================
  Files          95       95              
  Lines       31180    31176       -4     
==========================================
- Hits         8681     8679       -2     
+ Misses      22499    22497       -2     
Flag Coverage Δ
unittests 27.83% <38.63%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
molSimplify/Classes/mol3D.py 50.22% <100.00%> (-0.06%) ⬇️
molSimplify/Scripts/qcgen.py 71.56% <100.00%> (ø)
molSimplify/python_nn/ANN.py 70.49% <100.00%> (+0.57%) ⬆️
molSimplify/Informatics/MOF/MOF_functionalizer.py 0.00% <0.00%> (ø)
molSimplify/Informatics/geometrics.py 0.00% <0.00%> (ø)
molSimplify/python_krr/sklearn_models.py 0.00% <0.00%> (ø)
molSimplify/python_nn/ensemble_test.py 9.56% <33.33%> (ø)
molSimplify/Scripts/krr_prep.py 0.00% <0.00%> (ø)
molSimplify/molscontrol/dynamic_classifier.py 0.00% <0.00%> (ø)
molSimplify/Scripts/io.py 39.27% <47.61%> (ø)
... and 2 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ralf-meyer ralf-meyer merged commit 84f1741 into master Oct 20, 2023
8 checks passed
@ralf-meyer ralf-meyer deleted the importlib_resources branch October 20, 2023 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant